//
//  LJTestViewController.swift
//  LJWeibo
//
//  Created by 连俊杨 on 2017/10/6.
//  Copyright © 2017年 yang_ljun. All rights reserved.
//

import UIKit

class LJTestViewController: LJBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        title = "第\(navigationController?.childViewControllers.count ?? 0)个"

    }
    
    @objc func shownext() {
        let vc = LJTestViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
}

extension LJTestViewController {
    override func setupTableView() {
        super.setupTableView()
        
        lj_navigationItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(shownext))
    }
}

